#!/usr/bin/env groovy Jenkinsfile。
pipeline {
    agent any

    stages {
        stage('pull') {
            steps {
                checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'f91d2b39-bf59-43bf-8522-6871bf3a44f7', url: 'git@gitee.com:zhouruifeng/excel-export.git']]])
            }
        }
        stage('Build') {
            steps {
                sh 'mvn clean package -Dmvn.test.skip'
            }
        }
        stage('Deploy') {
            steps {
                sh 'make publish'
            }
        }
    }
}